﻿using EnvDTE;

namespace SmartStringResources.Dte
{
	public static class ProjectItemExtensions
	{
		public static string GetCustomToolNamespace(this ProjectItem projectItem)
		{
			if (projectItem == null)
				return null;

			if (projectItem.Properties == null)
				return null;

			return projectItem.Properties.GetPropertyValue("CustomToolNamespace");
		}

		public static string GetCustomTool(this ProjectItem projectItem)
		{
			if (projectItem == null)
				return null;

			if (projectItem.Properties == null)
				return null;

			return projectItem.Properties.GetPropertyValue("CustomTool");
		}
	}
}
